package org.hu.flexeasy.components
{
	import flash.display.CapsStyle;
	import flash.display.Graphics;
	import flash.display.LineScaleMode;
	import flash.events.MouseEvent;
	
	import org.hu.flexeasy.util.Utils;
	
	import spark.components.Group;
	import spark.components.VGroup;

	public class VContainer extends VGroup
	{
		
		public var borderSides:String="all";
		public var backgroupColor:uint = 0;
		public var borderColor:uint = 0xB5B8C8;		
		public var itemColorsVisible:Boolean = false;
		public var rollOverColor:uint = 0xB2E1FF;
		
		public function VContainer()
		{
			super();
		}

		override protected function updateDisplayList(w:Number, h:Number):void
		{
			super.updateDisplayList(w, h);
			
			var g:Graphics=graphics;
			graphics.clear();
			
			Utils.drawBackgroup(backgroupColor,g,w,h);			
			g.lineStyle(1, borderColor);
			Utils.drawBorder(Utils.lineSides(this.borderSides),g,w,h);
		}
	}
}